#include "player.h"

Player::Player(char *name, GameClass *myClass) 
{
	m_name = name;
	m_myClass = myClass;
}

Player::Player(void)
{
	m_name = "none";
	m_myClass = 0;
}

Player::Player(const Player &player)
{
	m_name = player.m_name;
	m_myClass = player.m_myClass;
	m_worldEntity = player.m_worldEntity;
}

char *Player::getName(void)
{
	return m_name;
}

GameClass *Player::getMyClass(void)
{
	return m_myClass;
}

WorldPlayer *Player::getWorldPlayer(void)
{
	return m_worldEntity;
}

void Player::setWorldEntity(WorldPlayer *worldPlayer)
{
	m_worldEntity = worldPlayer;
}
